//
//  ChartLine.m
//  ChartDemoX
//
//  Created by yuanpt on 17/5/6.
//  Copyright © 2017年 yuanpt. All rights reserved.
//

#import "ChartLine.h"

@implementation ChartLine

- (UIBezierPath *)path {
    CGPoint first = [self.points.firstObject CGPointValue];
    UIBezierPath *bp = [UIBezierPath bezierPath];
    [bp moveToPoint:first];
    for (NSInteger i = 1; i < self.points.count; i++) {
        CGPoint p = [self.points[i] CGPointValue];
        [bp addLineToPoint:p];
    }
    bp.lineWidth = 1.0;
    return bp;
}

@end
